<%@ page contentType="text/html;charset=UTF-8" %>
<%@ include file="/WEB-INF/views/modules/cms/front/include/taglib.jsp" %>
<%@ page import="org.apache.shiro.web.filter.authc.FormAuthenticationFilter" %>
<html>
<head>
    <meta charset="UTF-8">
    <meta name="decorator" content="default"/>
    <title>店铺商标信息管理</title>
    <meta name="decorator" content="default"/>
    <link href="${ctxStatic}/merchant/css/layui.css" rel="stylesheet" type="text/css">
    <link href="${ctxStatic}/merchant/css/index.css" rel="stylesheet" type="text/css">
    <link href="${ctxStatic}/merchant/css/register3.css" rel="stylesheet" type="text/css">
    <script src="${ctxStatic}/merchant/js/jquery-3.3.1.min.js"></script>
    <script type="text/javascript">
        $(document).ready(function () {

            $("#btnCancel").click(function () {
                window.location.href = "${fns:getFrontPath()}" + "/jumptrademarkForm";
            });

            //$("#name").focus();
            $("#radio2").click(function () {
                $(".empower").css('display', 'block');
            });
            $("#radio1").click(function () {
                $(".empower").css('display', 'none');
            })
            $("#inputForm").validate({
                submitHandler: function (form) {
                    loading('正在跳转，请稍等...');
                    form.submit();
                },
                errorContainer: "#messageBox",
                errorPlacement: function (error, element) {
                    $("#messageBox").text("输入有误，请先更正。");
                    if (element.is(":checkbox") || element.is(":radio") || element.parent().is(".input-append")) {
                        error.appendTo(element.parent().parent());
                    } else {
                        error.insertAfter(element);
                    }
                }
            });
        });
    </script>
</head>
<body>
<header>
    <div class="register-title">
        <span>商户入驻</span>
    </div>
</header>
<div class="content">
    <form:form id="inputForm" modelAttribute="hkShopTrademark" action="${ctx}/saveHkShopTrademarkForm" method="post">
        <form:hidden path="id"/>
        <sys:message content="${message}"/>
        <div class="artificial-info">
            <span class="title">商标信息上传<i class="warntitle">带*号为必填项,不填写可点击跳过按钮跳过。</i></span>
            <div class="info">
                <div class="layui-form-item">
                    <label class="layui-form-label">商标类型：</label>
                    <div class="layui-input-block" id="brand">
                            <%-- <input type="radio" name="brand" value="自有商标" title="自有商标" checked>
                             <span>自有商标</span>
                             <input type="radio" name="brand" value="授权商标" title="授权商标">
                             <span>授权商标</span>--%>
                        <form:radiobuttons path="trademarkType" id="radio" items="${fns:getDictList('trademark_type')}"
                                           itemLabel="label"
                                           itemValue="value" htmlEscape="false" class=""/>
                    </div>
                </div>
                <div class="layui-form-item">
                    <label class="layui-form-label">商标注册号：</label>
                    <div class="layui-input-block">
                        <form:input path="trademarkNumber" htmlEscape="false" type="text" name="address"
                                    style="height: 50px;border-radius: 4px;font-size: 16px;color: #333;"
                                    lay-verify="required" placeholder="请输入商标注册号"
                                    autocomplete="off" class="layui-input"/>
                    </div>
                </div>
                <div class="layui-form-item">
                    <label class="layui-form-label">商标注册执照：</label>
                    <div class="layui-input-block">
                        <div class="photo">
                            <form:hidden id="trademarkSrc" path="trademarkSrc" htmlEscape="false" maxlength="200"
                                         class="input-xlarge"/>
                            <sys:ckfinder input="trademarkSrc" type="images" uploadPath="/shop/hkShopTrademark"
                                          selectMultiple="false"/>
                        </div>
                        <div class="warnMessage">
                            <span>1、请上传《商标注册证》或《注册申请受理通知书》</span>
                            <span>2、变更中的商标请同时上传《变更受理通知书》和《注册申请受理通知书》</span>
                            <span>3、转入/已转让的商标需上传《转让受理通知书》或《转让证明》</span>
                            <span>4、《商标注册证》续证完成，而原《商标注册证》已经过期，需同时上传《核准续展注册证明》</span>
                        </div>
                    </div>

                </div>
                <div class="empower" style="display: none;">
                    <div class="layui-form-item" style="margin-top:40px;">
                        <label class="layui-form-label">品牌授权说明：</label>
                        <div class="layui-input-block">
                            <div class="photo">
                                <form:hidden id="brandSrc" path="brandSrc" htmlEscape="false" maxlength="200"
                                             class="input-xlarge"/>
                                <sys:ckfinder input="brandSrc" type="images" uploadPath="/shop/hkShopTrademark"
                                              selectMultiple="false"/>
                            </div>
                            <div class="warnMessage">
                                <span>1、上传从商标授权人到开店公司的完整授权文件</span>
                                <span>2、若商标授权人为自然人，须提交商标授权人亲笔签名的身份证复印件，并加盖开店公司红章</span>
                                <span>3、如果是旗舰店，请点击下载模板填写，加盖授权及开店公司红色公章后上传照片或扫描件。
                                    <a href="http://www.hongkzh.cn/download/品牌授权.docx"
                                       style="text-decoration: none;color: blue;font-size: 14px;"
                                       class="down">下载模板</a>
                                </span>
                            </div>
                        </div>
                    </div>
                    <div class="layui-form-item">
                        <label class="layui-form-label">截止日期：</label>
                        <div class="layui-input-block">
                                <%--<input type="text" name="address" required lay-verify="required" placeholder="请输入截止日期"
                                       autocomplete="off" class="layui-input">--%>
                            <input name="brandEndDate" type="text" readonly="readonly" maxlength="20"
                                   class="input-medium Wdate "
                                   value="<fmt:formatDate value="${hkShopTrademark.brandEndDate}" pattern="yyyy-MM-dd HH:mm:ss"/>"
                                   onclick="WdatePicker({dateFmt:'yyyy-MM-dd HH:mm:ss',isShowClear:false});"/>
                        </div>
                    </div>
                </div>
            </div>
        </div>
        <div class="jump">
                <%--<input id="btnCancel" type="button" value="上一步" onclick="history.go(-1)" />--%>
            <input id="btnCancel" type="button" value="跳过"/>
            <input id="next" type="submit" value="下一步"/>
        </div>
    </form:form>
</div>
<footer class="foot">
		<span>
			Copyright 2017-2018 lexiaozhuan.com 版权所有 (京ICP证030173号
		</span>
    <img src="${ctxStatic}/merchant/images/shouye/ghs.png">
    <span>
			京公网安备11000002000001号)
		</span>
</footer>
</body>
</html>